﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  保存店铺数据字典类别
    /// </summary>
    public class InputStoreDict
    {
        /// <summary>
        ///  店铺id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确店铺id")]
        public int storeID { get; set; }
        /// <summary>
        ///  数据字典根代码，例如：StaffType
        /// </summary>
        [Required(ErrorMessage = "dictType：数据字典根代码不能为空！")]
        public string dictType { get; set; }
        /// <summary>
        ///  数据字典下拉代码，例如：cook
        /// </summary>
        [Required(ErrorMessage = "dictCode：数据字典下拉代码不能为空！")]
        public string dictCode { get; set; }
        /// <summary>
        ///  0=删除；1=新增
        /// </summary>
        [Required]
        public int type { get; set; } = 1;
    }
}